package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProAdjustMapper;
import com.ruoyi.system.domain.ProAdjust;
import com.ruoyi.system.service.IProAdjustService;

/**
 * 计划调整记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class ProAdjustServiceImpl implements IProAdjustService 
{
    @Autowired
    private ProAdjustMapper proAdjustMapper;

    /**
     * 查询计划调整记录
     * 
     * @param adjustId 计划调整记录主键
     * @return 计划调整记录
     */
    @Override
    public ProAdjust selectProAdjustByAdjustId(Long adjustId)
    {
        return proAdjustMapper.selectProAdjustByAdjustId(adjustId);
    }

    /**
     * 查询计划调整记录列表
     * 
     * @param proAdjust 计划调整记录
     * @return 计划调整记录
     */
    @Override
    public List<ProAdjust> selectProAdjustList(ProAdjust proAdjust)
    {
        return proAdjustMapper.selectProAdjustList(proAdjust);
    }

    /**
     * 新增计划调整记录
     * 
     * @param proAdjust 计划调整记录
     * @return 结果
     */
    @Override
    public int insertProAdjust(ProAdjust proAdjust)
    {
        return proAdjustMapper.insertProAdjust(proAdjust);
    }

    /**
     * 修改计划调整记录
     * 
     * @param proAdjust 计划调整记录
     * @return 结果
     */
    @Override
    public int updateProAdjust(ProAdjust proAdjust)
    {
        return proAdjustMapper.updateProAdjust(proAdjust);
    }

    /**
     * 批量删除计划调整记录
     * 
     * @param adjustIds 需要删除的计划调整记录主键
     * @return 结果
     */
    @Override
    public int deleteProAdjustByAdjustIds(Long[] adjustIds)
    {
        return proAdjustMapper.deleteProAdjustByAdjustIds(adjustIds);
    }

    /**
     * 删除计划调整记录信息
     * 
     * @param adjustId 计划调整记录主键
     * @return 结果
     */
    @Override
    public int deleteProAdjustByAdjustId(Long adjustId)
    {
        return proAdjustMapper.deleteProAdjustByAdjustId(adjustId);
    }
}
